﻿@using DFYE.Web.Models

@{
    Layout = null;
    ViewBag.Title = System.Configuration.ConfigurationManager.AppSettings["siteTitle"].ToString();

    List<document> documents = (List<document>)Model;
    }
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>@ViewBag.Title @System.Configuration.ConfigurationManager.AppSettings["siteTitle"].ToString()</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/public.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
    <style>
    .main-tab-menu{ background:url(/Content/images/main_tab_menu.gif); width:72px; height:22px; float:left; text-align:center; margin:0px 1px; line-height:22px;}
    .topNews-line{padding-left:20px; height:20px; list-style:none; background-image:url(/Content/images/main_news_line.png); background-repeat:no-repeat; background-position:bottom}
    </style>

</head>
<body>
    <div style="position:absolute; background:url(/Content/images/bg_cloud.jpg);width:924px; height:220px; left:50%; margin-left:-502px; z-index:1;	filter:alpha(opacity=50);
	-moz-opacity:0.5;
	-khtml-opacity: 0.5;
	opacity: 0.5;"></div>
    <div class="page">
        
        <table class="pageHeader">
        <tr>
            <td width="200">
                <div id="logo" class="linkHack">
                    <img alt="logo" src="/Content/images/logo.png" />
                </div>
            </td>
            <td valign="top">
                <div id="webNav" >
                    <a href="/students">学生档案</a><a href="http://dfye.meibu.com" target="_blank">即时视频</a>
                </div>
                <div class="clearFloat"></div>
                <div >
                 @Html.Partial("menu")
                </div>
            </td>
            </tr>
        </table>


    <div id="pageContent" >
   

    <div style="float:left; margin-right:50px; width:428px; position:relative">
        <img src="/Content/images/index_si.png" style="position:absolute;left:0px; top:0px; zoom:1;z-index:100" />
	    <object  width="468" height="560" id="main" align="middle">
	        <param name="movie" value="main.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" />
            <param name="bgcolor" value="#ffffff" />
            <embed src="/Content/images/main.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="428" height="560" name="main" align="middle" type="application/x-shockwave-flash"/>
	    </object>        
    </div>
    <div style="float:left; background:url(/Content/images/main_content_bg.png);width:521px; height:487px;">
        <table border="0" width="100%">
            <tr>
                <td style="padding-left:15px; padding-top:20px;width:270px" valign="top">
                    <img src="/Content/images/main_news_title.jpg" />
                    <ul style="margin:0px;padding:0px;" id="topNews">
                        
                        <li class="topNews-line">1213adsfasdf</li>
<script>
$(function(){
        $.get("/document/readAjax_new?type=1&top=5", function (json) {

        if (json.result == "SUCCESS") {
            var html = ""
            //html += "<span class='datetime'>" + JsonDateToDate(json.content.datatime) + "</span>"
            //html += "<span class='title'>" + json.content.title + "</span>";

            for (var i = 0; i < json.content.length; i++) {
                html += "<li class='topNews-line'>"
                html += "[ " + json.content[i].type + " ] <a href='/document/show/" + json.content[i].ID + "' target='_blank'>";
                html += json.content[i].title.substring(0, 30) + "</a></li>"
            }

            $("#topNews").html(html);
        }
    })
})
</script>
                    </ul>
                </td>
                <td width="191" style="padding-top:20px">
                    <img src="/Content/images/zpIco.jpg" />
                </td>
            </tr>
        </table>
        <div style="margin-top:10px;padding-left:30px">
            <div style="padding-left:20px;"><div class="main-tab-menu">智能教学部</div><div class="main-tab-menu">艺术教学部</div><div class="main-tab-menu">语言教学部</div></div>
            <div class="clearFloat"></div>
            <div style="background:url(/Content/images/main_tab_contentPanel.gif);width:432px; height:104px; padding:1px; padding-left:10px">
                <img src="../../Content/images/main_tab_znjxb.gif" />
            </div>
        </div>
        <div style="padding-left:30px">
            <img src="/Content/images/main_qmb_title.gif" />
            <table>
                <tr>
                    <td>
                        <a href="http://www.dfyyey.com/SiteLibrary/view/课程设置#gq"><img style="border:0px;" src="../../Content/images/main_qmb_pin.jpg" /></a>
                    </td>
                                        <td>
                        <a href="http://www.dfyyey.com/SiteLibrary/view/课程设置#wd"><img style="border:0px;" src="../../Content/images/main_qmb_wudao.jpg" /></a>
                    </td>
                                        <td>
                        <a href="http://www.dfyyey.com/SiteLibrary/view/课程设置#yy"> <img style="border:0px;" src="../../Content/images/main_qmb_music.jpg" /></a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
<div class="clearFloat"></div>
<div class="cao" style=" position:relative; margin:auto; margin-top:-40px; background:url(/Content/images/cao.jpg); height:115px"></div>
<div id="pageFoot">
    <div id="copyright">
    版权所有:东方韵幼儿园 2012-2013 All Rights Reserved Copyright<br />

    </div>
</div>
</div>
</body>
</html>    
@*        <table width="900" style="margin:auto;">
            <tr>
                <td width="250"><img src="/Content/images/bannerLink1.jpg" /><img src="/Content/images/bannerLink2.jpg" /></td>
                <td width="280" valign="top" align="center">
                    <div style="background:url(/Content/images/main_rjbox.gif);width:224px; height:79px;padding:40px 20px 10px 20px" id="topRJ">

                    </div>
                    <script>

                        $.get("/document/readAjax_new?type=2", function (json) {

                            if (json.result == "SUCCESS") {
                                var html = ""
                                html += "<span class='datetime'>" + JsonDateToDate(json.content.datatime) + "</span>"
                                html += "<span class='title'>" + json.content.title + "</span>";
                                html += "<div class='content'>" + json.content.content.substring(0,60) + "</div>"
                                

                                $("#topRJ").html(html);
                            }
                        }
                        )
                    </script>
                </td>
                <td valign="top" >
                    <div>
                        <a href="/Document/index/4" ><img src="../../Content/images/main_bjxw.gif" style="border:0px solid red" /></a>
                        <ul>

                            @foreach (document dc in documents)
                            {
                            <li style="color:#979276; height:15px;">
                                <a href="/document/Show/@dc.ID" style="color:#979276" target="_blank">@dc.title</a>
                            </li>
                            }

                        </ul>
                    </div>
                </td>
            </tr>
        </table>*@


